<?php

namespace Kateba\RestaurantBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Kateba\RestaurantBundle\Entity\Food
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="Kateba\RestaurantBundle\Entity\FoodRepository")
 */
class Food {

    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var Doctrine\Common\Collections\ArrayCollection $ingredients
     */
    private $ingredients;

    /**
     * @var Kateba\RestaurantBundle\Entity\Category $category
     *
     * @ORM\ManyToOne(targetEntity="Kateba\RestaurantBundle\Entity\Category", inversedBy="food")
     * @ORM\JoinColumn(name="categoryId", referencedColumnName="id", onDelete="CASCADE", onUpdate="CASCADE", nullable=false)
     */
    private $category;

    /**
     * @var Doctrine\Common\Collections\ArrayCollection $ordersDetails
     * 
     * @ORM\OneToMany(targetEntity="Kateba\OrderBundle\Entity\OrderDetail", mappedBy="food", cascade={"all"}, orphanRemoval=true)
     */
    private $ordersDetails;

    /**
     * @var string $name
     *
     * @ORM\Column(name="name", type="string", length=255)
     */
    private $name;

    /**
     * @var text $description
     *
     * @ORM\Column(name="description", type="text")
     */
    private $description;

    /**
     * @var decimal $smallPrice
     *
     * @ORM\Column(name="smallPrice", type="decimal", precision=10, scale=2)
     */
    private $smallPrice;

    /**
     * @var decimal $mediumPrice
     *
     * @ORM\Column(name="mediumPrice", type="decimal", precision=10, scale=2)
     */
    private $mediumPrice = 0.0;

    /**
     * @var decimal $largePrice
     *
     * @ORM\Column(name="largePrice", type="decimal", precision=10, scale=2)
     */
    private $largePrice = 0.0;

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId() {
        return $this->id;
    }

    /**
     * Set name
     *
     * @param string $name
     */
    public function setName($name) {
        $this->name = $name;
    }

    /**
     * Get name
     *
     * @return string 
     */
    public function getName() {
        return $this->name;
    }

    /**
     * Set description
     *
     * @param text $description
     */
    public function setDescription($description) {
        $this->description = $description;
    }

    /**
     * Get description
     *
     * @return text 
     */
    public function getDescription() {
        return $this->description;
    }

    /**
     * Set smallPrice
     *
     * @param decimal $smallPrice
     */
    public function setSmallPrice($smallPrice) {
        $this->smallPrice = $smallPrice;
    }

    /**
     * Get smallPrice
     *
     * @return decimal 
     */
    public function getSmallPrice() {
        return $this->smallPrice;
    }

    /**
     * Set mediumPrice
     *
     * @param decimal $mediumPrice
     */
    public function setMediumPrice($mediumPrice) {
        $this->mediumPrice = $mediumPrice;
    }

    /**
     * Get mediumPrice
     *
     * @return decimal 
     */
    public function getMediumPrice() {
        return $this->mediumPrice;
    }

    /**
     * Set largePrice
     *
     * @param decimal $largePrice
     */
    public function setLargePrice($largePrice) {
        $this->largePrice = $largePrice;
    }

    /**
     * Get largePrice
     *
     * @return decimal 
     */
    public function getLargePrice() {
        return $this->largePrice;
    }

    public function __construct() {
        $this->ordersDetails = new \Doctrine\Common\Collections\ArrayCollection();
    }

    /**
     * Set category
     *
     * @param Kateba\RestaurantBundle\Entity\Category $category
     */
    public function setCategory(\Kateba\RestaurantBundle\Entity\Category $category) {
        $this->category = $category;
    }

    /**
     * Get category
     *
     * @return Kateba\RestaurantBundle\Entity\Category 
     */
    public function getCategory() {
        return $this->category;
    }

    /**
     * Add ordersDetails
     *
     * @param Kateba\OrderBundle\Entity\OrderDetail $ordersDetails
     */
    public function addOrderDetail(\Kateba\OrderBundle\Entity\OrderDetail $ordersDetails) {
        $this->ordersDetails[] = $ordersDetails;
    }

    /**
     * Get ordersDetails
     *
     * @return Doctrine\Common\Collections\Collection 
     */
    public function getOrdersDetails() {
        return $this->ordersDetails;
    }

    /**
     * Add ingredient
     *
     * @param Kateba\RestaurantBundle\Entity\Ingredient $ingredient
     */
    public function addIngredient(\Kateba\RestaurantBundle\Entity\Ingredient $ingredient) {
        $this->ingredients[] = $ingredient;
    }

    /**
     * Get ingredients
     *
     * @return Doctrine\Common\Collections\Collection 
     */
    public function getIngredientS() {
        return $this->ingredients;
    }

}